Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete pods to acclerate pods rescheduling #12

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

razo7
Copy link
Member

@razo7 razo7 commented Oct 30, 2023

SNR and FAR can use the DeletePods function to fully remediate a node after a reboot has finished.
Relates to medik8s/self-node-remediation#158

SNR and FAR can use DeletePods function to fully remediate a node after a reboot has finished
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

"sigs.k8s.io/controller-runtime/pkg/client"
)

// DeletePods deletes all the pods from the unhealthy node
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: in that context this method just deletes all the pods from the node (i.e we don't know whether the node is unhealthy or not)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, I will fix it.

We don't know the node state- whether it is unhealthy or not
@mshitrit
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Oct 31, 2023
@openshift-ci openshift-ci bot merged commit 418e5b0 into medik8s:main Oct 31, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants